#define _CRT_SECURE_NO_WARNINGS 1
#include<iostream>
using namespace std;
const int N = 1010;
struct ss
{
	int xh;
	int xy;
	int sz;
	double zh;
	int zf;
}s[N];
int main()
{
	int n;
	cin >> n;
	for (int i = 0; i < n; i++)
	{
		cin >> s[i].xh >> s[i].xy >> s[i].sz;
		s[i].zh = s[i].xy * 7 + s[i].sz * 3;
		s[i].zf = s[i].xy + s[i].sz;
	}
	for (int i = 0; i < n; i++)
	{
		if (s[i].zf > 140 && s[i].zh >= 800)
			cout << "Excellent" << endl;
		else
			cout << "Not excellent" << endl;
	}
	return 0;
}